﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wekit.Model.Auth
{
    [Serializable]
    public  class User
    {
        public User(){}
        /// <summary>
        /// 用户唯一标示
        /// </summary>
        public virtual string Id { get; set; }
        /// <summary>
        /// 用户登录ID
        /// </summary>
        public virtual string UserId { get; set; }

        /// <summary>
        /// 用户昵称
        /// </summary>
        public virtual string Name { get; set; }
        
        /// <summary>
        /// 用户电子邮件
        /// </summary>
        public virtual string Email { get; set; }
        /// <summary>
        /// 用户密码
        /// </summary>
        public virtual string Password { get; set; }

        /// <summary>
        /// 用户姓
        /// </summary>
        public virtual string FirstName { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public virtual string LastName { get; set; }

        /// <summary>
        /// 用户创建时间
        /// </summary>
        public virtual DateTime Created { get; set; }

        /// <summary>
        /// 根据用户获取用户的角色
        /// </summary>
        public virtual ICollection<UserRole> UserRoles { get; set; }
       
    }
}
